package com.zp.system.dubbo;

import com.zp.system.api.RemoteDeptService;
import com.zp.system.api.entity.SysDept;
import com.zp.system.service.ISysDeptService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import java.util.List;

@RequiredArgsConstructor
@Service
@DubboService
public class RemoteDeptServiceImpl implements RemoteDeptService {

    private final ISysDeptService sysDeptService;

    @Override
    public List<SysDept> selectDeptList(SysDept dept) {
        return sysDeptService.selectDeptList(dept);
    }
}
